package com.youdianstar.app.common.entity


/**
 * File: Account
 * Author: 82149 Create: 2021/12/16 18:09
 * Changes (from 2021/12/16)
 * --------------------------------------------------
 * description: 记录登陆账号
 * ---------------------------------------------------
 *
 */
data class Account(
    // 1 手机 2 邮件 3 Google
    val type: Int,
    val id:Int = 0,
    var code: Int? = null,
    var phone: String? = null,
    var email: String? = null
){
    fun getAuthAccount():String{
//        val authTx = when(type){
//            1-> type.toString()+"_"+ code?.toString()+"_"+ phone.toString()
//            2-> type.toString()+"_"+ email
//            else -> ""
//        }
        return id.toString()
    }
}
